<!-- saved from url=(0022)http://internet.e-mail -->
<%@ page import="java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Approval Summary</title>
<style type="text/css">
<!--
.style3 {
	font-family: Arial;
	font-size: 12px;
}
-->
</style>
</head>
<body>
	  <table width="100%" height = "30"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFBF0">
<%
int dLoop=0;
ResultSet Rs = task.fetchSampleTypeList(QualityType);

int R_id = 0;
String Colour="";
float pending = 0;
float unfixed = 0;
Rs.beforeFirst();

if (Rs.next()==true)
{
Rs.beforeFirst();
while (Rs.next())
{
		R_id = Rs.getInt("sample_dts_id");
		if (Rs.getInt("Id") > 0)	
		{	

%>

        <tr id=<%=R_id%> onDblClick="cardViewClick(this);" onClick="highlightOn(this);">
          <td width="3%" align="center" class="style3"><%=Rs.getInt("id")%></td>
          <td width="9%" align="center" class="style3"><%=Rs.getString("ref_number")%></td>
          <td width="8%" align="center" class="style3"><%=task.getFieldValueForId("company_master","name",Rs.getInt("buyer_seller_id"))%></td>

          <td width="7%" align="center" class="style3"><%=Rs.getString("location")%></td>
          <td width="6%" align="center" class="style3"><%=task.getFieldValueForId("origin_master","name",Rs.getInt("origin_id"))%></td>
          <td width="6%" align="center" class="style3"><%=task.getFieldValueForId("quality_master","name",Rs.getInt("quality_id"))%></td>
          <td width="15%" align="center" class="style3"><%=task.getFieldValueForId("grade_master","name",Rs.getInt("grade_id"))%></td>
          <td width="4%" align="center" class="style3"><%=Rs.getInt("approved_reject")%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("black"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("brown"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("broken"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("foreign_matter"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("above_sc20"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("sc19"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("sc18"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("sc17"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("sc16"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("sc15"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("sc14"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("sc13"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("sc12"),1)%></td>
          <td width="3%" align="center" class="style3"><%=Utils.numberToStr(Rs.getFloat("below_sc12"),1)%></td>
		  
        </tr>
<%
		}
		else
		{
%>
        <tr id=<%=0%> onDblClick="cardViewClick(this);" onClick="highlightOn(this);">
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="9%" align="center" class="style3">&nbsp;</td>
          <td width="8%" align="center" class="style3">&nbsp;</td>
          <td width="7%" align="center" class="style3">&nbsp;</td>
          <td width="6%" align="center" class="style3">&nbsp;</td>
          <td width="6%" align="center" class="style3">&nbsp;</td>
          <td width="15%" align="center" class="style3">&nbsp;</td>
          <td width="4%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
          <td width="3%" align="center" class="style3">&nbsp;</td>
	</tr>

<%	
		}	
		dLoop=dLoop+1;
}
}
%>
</table>
</body>
</html>
